package com.kangye.learnstudent.service;

import com.kangye.learnstudent.entity.StudentPaper;
import com.kangye.learnstudent.entity.User;
import com.kangye.learnstudent.util.ViewJsonObject;
import org.springframework.ui.Model;

import java.sql.Timestamp;

import java.util.List;

/**
 * @program: learndeduo
 * @description: 学生试卷逻辑接口
 * @author: stl
 * @create: 2021-05-17 10:59
 **/
public interface StudentPaperService {
    //根据年级和科目查询各科和各年级的试卷
    ViewJsonObject<StudentPaper> selStudentTest(Integer spGradeId, Integer spSubjectId,Integer page, Integer limit);

    //查询部分试卷信息
    ViewJsonObject getStudentPaper(User user,Integer page, Integer limit);

    //根据学生id和卷子的id修改做题试卷的状态(做了卷子了没有)和提交卷子的时间
    Integer seleStudentTestPaperpage(Timestamp spSubmitTime,Integer spUserId, Integer spId);


}